Skip to content

CP-54020: Refactor sxm and storage_mux code #6378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 2, 2025

Conversation

Vincent-lau
Copy link
Contributor

@Vincent-lau Vincent-lau commented Mar 20, 2025

There are various refactors in this PR, details in each commit message. This is mainly for clean up purposes and also to prepare for the real refactoring of sxm for SMAPIv1 and SMAPIv3.

No functional change.

More to come...

@Vincent-lau Vincent-lau force-pushed the private/shul2/sxm-mux branch from 9e042ba to 544bbdd Compare March 20, 2025 14:55
@Vincent-lau Vincent-lau force-pushed the private/shul2/sxm-mux branch from 544bbdd to 7528ee4 Compare March 20, 2025 15:48
@contificate
Copy link
Contributor

I've provided a number of nitpicks (feel free to ignore), but I generally like the usage of modules to structure this nicely.

@Vincent-lau
Copy link
Contributor Author

I've provided a number of nitpicks (feel free to ignore), but I generally like the usage of modules to structure this nicely.

I think some of these are good comments, I have fixed them accordingly.

This split is so that this part can be used by storage_migrate later on
for its own multiplexing logic, to avoid dependency cycle.

Signed-off-by: Vincent Liu <shuntian.liu2@cloud.com>
This is then used later for storage_migrate to multiplex based on the
SMAPI version.

Signed-off-by: Vincent Liu <shuntian.liu2@cloud.com>
This will be used later on to define the interface a migration module
should implement.

Signed-off-by: Vincent Liu <shuntian.liu2@cloud.com>
@Vincent-lau Vincent-lau force-pushed the private/shul2/sxm-mux branch from 19135d0 to 9bf0661 Compare March 24, 2025 16:33
@Vincent-lau Vincent-lau force-pushed the private/shul2/sxm-mux branch from 9bf0661 to 3017b94 Compare March 25, 2025 16:08
@Vincent-lau
Copy link
Contributor Author

I have changed the PR a bit with an additional change to the quality gate as well, let me know if there are any concerns around this

@Vincent-lau Vincent-lau force-pushed the private/shul2/sxm-mux branch from 43b4085 to 1a88a93 Compare March 26, 2025 15:44
Signed-off-by: Vincent Liu <shuntian.liu2@cloud.com>
Use first class modules to generate modules for the remote SMAPIv2 calls
to avoid code duplication.

Signed-off-by: Vincent Liu <shuntian.liu2@cloud.com>
Signed-off-by: Vincent Liu <shuntian.liu2@cloud.com>
Signed-off-by: Vincent Liu <shuntian.liu2@cloud.com>
@Vincent-lau Vincent-lau force-pushed the private/shul2/sxm-mux branch from 1a88a93 to 112ef69 Compare March 26, 2025 15:51
@Vincent-lau Vincent-lau added this pull request to the merge queue Apr 2, 2025
Merged via the queue into xapi-project:master with commit 7991e12 Apr 2, 2025
17 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Apr 11, 2025
…_smapi{v1,v3}_migrate.ml (#6404)

This is a continuation of #6378: the refactoring effort of SXM code.

To be continued...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants